<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Vista de eventos</title>

</head>

<body>
 
<a href="index.php?action=editar&module=eventos">Agregar nuevo evento</a>
<form id="form1" name="form1" method="post" action="">

  <table width="200" border="1">
    <tr>
      <th scope="col">id</th>
      <th scope="col">nombre</th>
      <th scope="col">Descripci&oacute;n</th>
      <th scope="col">acciones</th>
    </tr>
	<?php 
	foreach($res as $key=>$ev ){
	?>
    <tr>
      <td><?=$ev->id ?></td>
      <td><?=$ev->nombreEvento ?></td>
      <td><?=$ev->descripcion ?></td>
      <td>
	  <a href="index.php?action=editar&id=<?=$ev->id ?>&module=eventos">editar</a>
	  <a href="index.php?action=eliminar&id=<?=$ev->id ?>&module=eventos">Borrar</a>
	  <a href="index.php?idevento=<?=$ev->id ?>&module=asignaciones">Asignar</a><br>
	  <a href="index.php?idevento=<?=$ev->id ?>&action=mostrarParticipantes&&module=asignaciones">ver participantes</a>
	  </td>
    </tr>
	<? }?>
  </table>
</form>
</body>
</html>
